<template>

  <div class="container mx-auto p-6">
    <div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-4">
      <NuxtLink :to="'/gaspDemo/demo' + (index < 10 ? '0' + index : index)" v-for="index in 7" :key="index"
        class="p-4 bg-white rounded-lg shadow-md hover:shadow-lg transition duration-300 border border-gray-200 hover:border-blue-500 text-center">
        <span class="block font-medium text-gray-800 hover:text-blue-600">瀑布流{{ index < 10 ? '0' + (index - 1) : index
        }}</span>
      </NuxtLink>

    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue'
const { $gsap } = useNuxtApp()


onMounted(() => {
  init()
});

const init = () => {


}

</script>

<style lang="scss" scoped>
.content-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  // flex-direction: column;
  flex-wrap: wrap;
}

.purple {
  background-color: #9c27b0;
}

.green {
  background-color: #4caf50;
}

.blue {
  background-color: #2196f3;
}

.red {
  background-color: #f44336;
}

.yellow {
  background-color: #ffc107;
}

.orange {
  background-color: #ff9800;
}
</style>